<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div style="width: 100px;height: 100px;background-color: red;" contenteditable="true">
			
		</div>
	</body>
	<script type="text/javascript">
		let arr = ['变量1','变量2','变量3']
		
		let [name1,name2,name3] = arr
		;[name1,name3] = [name2,name1]
		console.log(name1,name3);
	</script>
</html>
